﻿@using Happy.Cms.Query.Articles
@using Happy.ExtentionMethods

@helper RenderTeamList(IEnumerable<ArticleView> articles)
{
    <div class="ciep-team-list">
        <h3>研究团队</h3>
        @foreach (var row in articles.ToList().Rows(6))
        {
            <div class="row">
                @foreach (var article in row)
                {
                    <div class="col-xs-2">
                        <div class="thumbnail">
                            <div class="ciep-team-photo">
                                <a href="#">
                                    <img src="@article.ImageInfo_Url" />
                                </a>
                            </div>
                            <div class="caption">
                                <h3>@article.Title</h3>
                                <a href="/Team/Detail/@article.Id" class="btn btn-primary" role="button">详细</a>
                            </div>
                        </div>
                    </div>
                }
            </div>
        }
    </div>
}